package com.yb.strategy;

public class StrategyFactory {
    public static Strategy getInstance(String name){
        if(name.equals("Add")){
            return new OperationAdd();
        }else if(name.equals("Multiply")){
            return new OperationMultiply();
        }else{
            return new OperationSubstract();
        }

    }
}
